﻿@model VideoCache.Server.MVCWeb.Models.CreateNetbarModel
@{
    ViewBag.Title = "创建网吧";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
@section script
{
<script type="text/javascript" src="@Url.Content("~/scripts/jquery.locationselect.js")"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $.locationSelect("Province", "City");
    });
</script>
}
<h2 class="pageTitle">@ViewBag.Title</h2>
<div class="ten-form wrap">
    @using (Html.BeginForm())
    {
        @Html.HiddenFor(model => model.Id)
        @Html.ValidationSummary(true)
        <fieldset>
            <legend>@ViewBag.Title</legend>
            <dl>
                <dt>@Html.LabelFor(model => model.Name)</dt>
                <dd>
                    @Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </dd>
            </dl>
            <dl>
                <dt>
                    @Html.LabelFor(model => model.Password)
                </dt>
                <dd>
                    @Html.EditorFor(model => model.Password)
                    @Html.ValidationMessageFor(model => model.Password)
                </dd>
            </dl>
            <dl>
                <dt>
                    @Html.LabelFor(model => model.ConfirmPassword)
                </dt>
                <dd>
                    @Html.EditorFor(model => model.ConfirmPassword)
                    @Html.ValidationMessageFor(model => model.ConfirmPassword)
                </dd>
            </dl>
            <dl>
                <dt>
                    所在地区
                </dt>
                <dd>
                    <select name="Province" id="Province"></select>
                    <select name="City" id="City"></select>
                    @Html.ValidationMessageFor(model => model.Province)
                    @Html.ValidationMessageFor(model => model.City)
                </dd>
            </dl>
            <dl>
                <dt>
                    @Html.LabelFor(model => model.ContactPerson)
                </dt>
                <dd>
                    @Html.EditorFor(model => model.ContactPerson)
                    @Html.ValidationMessageFor(model => model.ContactPerson)
                </dd>
            </dl>
            <dl>
                <dt>
                    @Html.LabelFor(model => model.Telephone)
                </dt>
                <dd>
                    @Html.EditorFor(model => model.Telephone)
                    @Html.ValidationMessageFor(model => model.Telephone)
                </dd>
            </dl>
            <dl>
                <dt>
                    @Html.LabelFor(model => model.MobilePhone)
                </dt>
                <dd>
                    @Html.EditorFor(model => model.MobilePhone)
                    @Html.ValidationMessageFor(model => model.MobilePhone)
                </dd>
            </dl>
            <p>
                @Html.ValidationMessage("Error")
            </p>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>
    }
</div>
